Public Sub Sprite_DrawSprite(ByVal pic As PictureBox)
pic.FillColor = Color
pic.Circle (Cx, Cy), Radius, Color
End Sub
' Initialize the ball.
Public Sub InitializeBall(ByVal new_radius As Integer, ByVal new_cx As Integer, ByVal new_cy As Integer, ByVal new_vx As Integer, ByVal new_vy As Integer, ByVal new_color As Long)
Radius = new_radius
Cx = new_cx
Cy = new_cy
Vx = new_vx
Vy = new_vy
Color = new_color
End Sub
' Add the velocity components to the sprite's
' position components.
Public Sub Sprite_MoveSprite(ByVal xmin As Integer, ByVal xmax As Integer, ByVal ymin As Integer, ByVal ymax As Integer)